import request from '@/utils/request'


// 批量生成CDK
export function createCdk(query) {
  return request({
    url: '/shopping/mallCdk/createCdk',
    method: 'post',
    params: query
  })
}



// 查询批量生成CDK列表
export function listMallCoupons(query) {
  return request({
    url: '/shopping/mallCdk/listMallCoupons',
    method: 'get',
    params: query
  })
}

// 查询批量生成CDK列表
export function listMallCdk(query) {
  return request({
    url: '/shopping/mallCdk/list',
    method: 'get',
    params: query
  })
}

// 查询批量生成CDK详细
export function getMallCdk(id) {
  return request({
    url: '/shopping/mallCdk/' + id,
    method: 'get'
  })
}

// 新增批量生成CDK
export function addMallCdk(data) {
  return request({
    url: '/shopping/mallCdk',
    method: 'post',
    data: data
  })
}

// 修改批量生成CDK
export function updateMallCdk(data) {
  return request({
    url: '/shopping/mallCdk',
    method: 'put',
    data: data
  })
}

// 删除批量生成CDK
export function delMallCdk(id) {
  return request({
    url: '/shopping/mallCdk/' + id,
    method: 'delete'
  })
}
// 删除批量生成CDK
export function logicDelMallCdk(id) {
  return request({
    url: '/shopping/mallCdk/' + id,
    method: 'delete'
  })
}

// 导出批量生成CDK
export function exportMallCdk(query) {
  return request({
    url: '/shopping/mallCdk/export',
    method: 'get',
    params: query
  })
}
